package com.acsapp;

import android.widget.Spinner;
import android.widget.ArrayAdapter;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ImageButton;
import android.widget.Toast;

public class MainView extends Activity {
    /** Called when the activity is first created. */
	
	Context context = this;
	ArrayAdapter<CharSequence> adapter;
	//MyParcel parcel(adapter);
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	 super.onCreate(savedInstanceState);

        //not sure what this actually does
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                         WindowManager.LayoutParams.FLAG_FULLSCREEN); 
    	
    	setContentView(R.layout.main);
        ImageButton startButton = (ImageButton) findViewById(R.id.pmo_button);
        ImageButton secondButton = (ImageButton) findViewById(R.id.pmo_button1);
        
        startButton.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View arg0) {
                    
                    Intent myIntent = new Intent(context, PMOselect.class);
                    startActivity(myIntent);
            }               
        });
        
        secondButton.setOnClickListener(new View.OnClickListener() {       	
		
			public void onClick(View v) {
				// TODO Auto-generated method stub
				//System.exit(0);
				Intent myIntent = new Intent(context, AddPromo.class);
				//myIntent.putExtra("adapter1", adapter);
                startActivity(myIntent);
			}
		});

    	
    }
}

